<template>
  <div class="MaterialDemand">
    <div class="banner">
      <div class="wh-1200 auto pl-10">
        <p class="banner_text">产品供应量</p>
        <div class="banner_box">
          <countTo class="banner_box_num" :startVal="startVal" :endVal="endVal" :duration="3000"></countTo>
        </div>
      </div>
    </div>
    <div class="mainContainer wh-1200">
      <div class="main_title mt-40">
        <img src="@/assets/images/product.png" alt />
        <span>产品供应</span>
      </div>
      <!-- 需求搜索Start -->
      <div class="main_search">
        <template v-if="!show">
          <span>关 键 字：</span>
          <a-input placeholder="请输入产品名称" v-model="requestName" />
          <a-button class="ant_btn1" @click="toSearch(true, 1)">搜索</a-button>
          <span @click="showTopSearch" v-show="!show" class="show_btn">
            高级搜索
            <a-icon type="caret-right" />
          </span>
        </template>
        <a-form-model :model="form" v-if="show" :label-col="{span:2}" :wrapper-col="{span:16}">
          <a-form-model-item class="flex mt-20" label="关 键 字 ： ">
            <a-input placeholder="请输入产品名称" class="main_search_input" v-model="form.keyword" />
            <!-- 标签End -->
            <!-- <div class="flex main_search_label"> -->
            <a-button class="ant_btn1" type="primary" @click="topSearch(true, 1)">搜索</a-button>
            <!-- <a-button class="btn mr-10" @click="clearForm">清空</a-button> -->
            <!-- </div> -->
            <span @click="hideTopSearch" v-show="show" class="show_btn">
              高级搜索
              <a-icon type="caret-down" />
            </span>
          </a-form-model-item>
          <a-form-model-item class="flex" label="产品类别：">
            <a-select placeholder="请选择" class="main_search_select" style="width: 260px" @change="handleChange" v-model="form.productOneCategory">
              <a-select-option value="">请选择</a-select-option>
              <a-select-option v-for="(item, index) in selectType" :key="index" :value="item.id">
                {{ item.categoryName }}
              </a-select-option>
            </a-select>
            <a-select placeholder="请选择" class="main_search_select" style="width: 260px" @change="handleChange1" v-model="form.productSecondCategory">
              <a-select-option value="">请选择</a-select-option>
              <a-select-option v-for="(item, index) in selectTypeTwo" :key="index" :value="item.categoryNo">
                {{ item.categoryName }}
              </a-select-option>
            </a-select>
          </a-form-model-item>
          <a-form-model-item class="flex" label="价格区间">
            <a-input class="main_search_price" v-model="form.priceFrom" /><span class="ml-10 mr-10">至</span>
            <a-input class="main_search_price" v-model="form.priceTo" />
          </a-form-model-item>
          <a-form-model-item label="发布时间">
            <a-range-picker format="YYYY-MM-DD" @change="timeSelect" />
          </a-form-model-item>
          <a-form-model-item class="flex" label="供应上限">
            <a-checkbox v-model="form.productIslimited" @change="limitChanged"></a-checkbox><span class="ml-8">不限</span>
          </a-form-model-item>
          <!-- 标签Start -->
          <a-form-model-item class="flex main_search_radio" label="标签：">
            <p class="item_industrymode" :class="item.active ? 'item_industrymode_active' : ''" @click="AddindustryList(index,item.value)" v-for="(item, index) in industryList" :key="index">
              {{ item.name }}
            </p>
          </a-form-model-item>
        </a-form-model>
      </div>
      <!-- 需求搜索End -->
      <!-- 搜索数据Start -->
      <div class="main_searchResult clearfix">
        <div class="f-left search-left">
          <span v-if="displayName != '' && typeof(displayName) != 'undefined'">
            搜索："
            <span class="search-text1">{{displayName}}</span>
            "，
          </span>
          共<span class="search-text2"> {{ this.total }} </span>条数据
        </div>
        <div class="f-right search-right clearfix">
          <a-button @click="receptNum(2)">
            <div class="f-left search-right-icon">
              <div style="margin: -8px 5px 0 0">
                <div>
                  <a-icon type="caret-up" />
                </div>
                <div>
                  <a-icon type="caret-down" class="down" />
                </div>
              </div>
            </div>
            <div class="f-left remainingTime(4)">对接量</div>
          </a-button>
          <a-button @click="ordPrice(4)">
            <div class="f-left search-right-icon">
              <div>
                <a-icon type="caret-up" />
              </div>
              <div>
                <a-icon type="caret-down" class="down" />
              </div>
            </div>
            <div class="f-left remainingTime">价格</div>
          </a-button>
          <a-button @click="publishTime(6)">
            <div class="f-left search-right-icon">
              <div>
                <a-icon type="caret-up" />
              </div>
              <div>
                <a-icon type="caret-down" class="down" />
              </div>
            </div>
            <div class="f-left remainingTime">发布时间</div>
          </a-button>
        </div>
      </div>
      <!-- 搜索数据End -->
      <!-- 商品列表Start -->
      <div class="goods_list clearfix">
        <div class="goods_list_son" v-for="item in goodsList" :key="item.id">
          <div class="goods_list_container" @click="toDetail(item.id)">
            <div class="goods_list_box">
              <div>
                <div class="tags" v-if="item.isHot">热门</div>
                <div class="goods_list_img">
                  <img src="@/assets/images/defult_img.png" v-real-img="item.productFile.length > 0 && item.productFile[0].fileUrl ? 
                    item.productFile[0].fileUrl : '@/assets/images/defult_img.png'" />
                  <!-- <img :src="item.productFile.length > 0 && item.productFile[0].fileUrl ? 
                    item.productFile[0].fileUrl : '@/assets/images/defult_img.png'" alt="" /> -->

                  <!-- <img v-if="item.productFile.length > 0" :src="getImageUrl(item.productFile[0].fileUrl)" alt="" />
                  <img v-else src="@/assets/images/defult_img.png" alt /> -->
                </div>
              </div>
            </div>
            <p class="clearTitle row-ellipsis">{{ item.productName }}</p>
            <p class="price" v-if="item.isInterview? 0:1 ">￥{{ item.price }}<span v-if="showConnect">对接量：{{ item.messageCount }}</span></p>
            <p class="price" v-else>面谈<span v-if="showConnect">对接量：{{ item.messageCount }}</span></p>
            <p class="produce row-ellipsis" :title="item.productOneCategoryName+'-'+item.productSecondCategoryName">{{ item.productOneCategoryName? item.productOneCategoryName : '' }}-{{ item.productSecondCategoryName?item.productSecondCategoryName:'' }}</p>
            <div class="flex produce_type" v-if="item.productTag">
              <a-button class="btn1" v-if="item.productTag == 1">重点新产品</a-button>
              <a-button class="btn1" v-else-if="item.productTag == 2">自主查新产品</a-button>
              <a-button class="btn1" v-else-if="item.productTag == 3">专利新产品</a-button>
              <a-button class="btn1" v-else>其他</a-button>
            </div>
            <div class="flex produce_type" v-else style="opacity:0;">
              <a-button class="btn1"></a-button>
            </div>
            <div class="company_box flex">
              <span class="faker"></span>
              <span class="title row-ellipsis">{{ item.entName }}</span>
              <i class="iconfont icon-gengduojiantou"></i>
            </div>
          </div>
        </div>
      </div>
      <!-- 商品列表End -->
      <no-data v-if="goodsList.length<=0" :Keywords="displayName"></no-data>
      <!-- 分页Start -->
      <div class="tc mt-20 mb-100">
        <a-pagination :show-total="total => `共有 ${total} 条数据`" show-quick-jumper :default-current="current" show-size-changer :defaultPageSize="PageSize" :pageSizeOptions="['16', '32', '48', '64']" :PageSize="PageSize" :total="total" @change="onChange" @showSizeChange="showSizeChange" />
      </div>
      <!-- 分页End -->

    </div>
  </div>
</template>

<script>
import countTo from "vue-count-to";
import NoData from "@/components/Nodata";
import {
  getList,
  getProductOneCategory,
  getTongJ,
} from "@/apis/productProvide";
export default {
  components: {
    countTo,
    NoData,
  },
  created() {
    this.getTongJ();
    this.GetByParentList();
    let _category_1 = this.$route.query.category_1;
    let _category_1_id = this.$route.query.category_1_id;
    let _category_2 = this.$route.query.category_2;
    let _category_2_id = this.$route.query.category_2_id;
    let _keywords = this.$route.query.keywords;
    if (_category_1) {
      this.form.productOneCategory = _category_1_id;
      if (_category_2) {
        let params = { pid: _category_1_id };
        getProductOneCategory(params).then((res) => {
          if (res.code == 200) {
            this.selectTypeTwo = res.data.filter(ele => ele.categoryStatus === 1)
            this.form.productSecondCategory = _category_2;
          }
        });
        this.productOneCategory = _category_1;
        this.form.productSecondCategory = _category_2;
        this.topSearch(true);
      } else {
        this.productOneCategory = _category_1;
        this.form.productOneCategory = _category_1_id;
        let params = { pid: _category_1_id };
        getProductOneCategory(params).then((res) => {
          if (res.code == 200) {
            this.selectTypeTwo = res.data.filter(ele => ele.categoryStatus === 1)
          }
        });
        this.toSearch(this.requestName);
      }

      let _searchProductCategory1List = localStorage.getItem(
        "searchProductCategory1List"
      );
      let searchProductCategory1List = [];
      if (_searchProductCategory1List) {
        // 获取本地产品 关键字记录
        searchProductCategory1List = JSON.parse(_searchProductCategory1List);
        if (searchProductCategory1List.length >= 5) {
          searchProductCategory1List.shift();
        }
        searchProductCategory1List.push(_category_1);
      } else {
        searchProductCategory1List.push(_category_1);
      }

      // localStorage.setItem(
      //   "searchProductCategory1List",
      //   JSON.stringify(searchProductCategory1List)
      // );
    }

    if (_category_2) {
      this.form.productSecondCategory = _category_2;
      let _searchProductCategory2List = localStorage.getItem(
        "searchProductCategory2List"
      );
      let searchProductCategory2List = [];
      if (_searchProductCategory2List) {
        // 获取本地产品 关键字记录
        searchProductCategory2List = JSON.parse(_searchProductCategory2List);
        if (searchProductCategory2List.length >= 5) {
          searchProductCategory2List.shift();
        }
        searchProductCategory2List.push(_category_2);
      } else {
        searchProductCategory2List.push(_category_2);
      }

      localStorage.setItem(
        "searchProductCategory2List",
        JSON.stringify(searchProductCategory2List)
      );
    }
    if (_keywords || _keywords != "") {
      this.requestName = _keywords;
      let _ProductsearchKeyWords = localStorage.getItem(
        "ProductsearchKeyWords"
      );

      let ProductsearchKeyWords = [];
      if (_ProductsearchKeyWords) {
        // 获取本地产品 关键字记录
        ProductsearchKeyWords = JSON.parse(_ProductsearchKeyWords);
        if (ProductsearchKeyWords.includes(_keywords)) {
        } else {
          if (ProductsearchKeyWords.length >= 5) {
            ProductsearchKeyWords.shift();
            ProductsearchKeyWords.push(this.requestName);
          }else{
            ProductsearchKeyWords.push(this.requestName);
          }
        }
      }
      this.toSearch(this.requestName);
    }
    if (
      _keywords == undefined &&
      _category_1 == undefined &&
      _category_2 == undefined
    ) {
      this.toSearch(this.requestName);
    } else {
      this.toSearch(this.requestName);
    }
  },
  data() {
    return {
      showConnect: false,
      startVal: 0,
      endVal: 0,
      defaultCurrent: 1,
      displayName: "",
      requestName: "",
      show: false,
      current: 1,
      PageSize: 16,
      total: 0,
      goodsList: [],
      tagList: [], //标签选择
      products: "", //标签传后端
      industryList: [
        {
          name: "重点新产品",
          active: false,
          value: 1,
        },
        {
          name: "自主查新产品",
          active: false,
          value: 2,
        },
        {
          name: "专利新产品",
          active: false,
          value: 3,
        },
        {
          name: "其他",
          active: false,
          value: 4,
        },
      ],
      ActiveindustryList: 0,
      limited: null, //默认供应上限
      form: {
        keyword: "",
        orderTypes: null, //1 对接量倒叙 2对接量正序 价格 3 倒叙 价格 4 正序 发布时间 5 倒叙 发布时间 6 正序
        current: 1,
        priceTo: "",
        priceFrom: "",
        size: 16,
        productOneCategory: "",
        productSecondCategory: "",
        productIslimited: false,
        updateTimeFrom: '',
        updateTimeTo: ''
      },
      productOneCategory: "",
      selectType: [],
      selectTypeTwo: [],
    };
  },
  methods: {
    // 高级搜素隐藏
    hideTopSearch() {
      this.show = !this.show
      this.requestName = this.form.keyword
    },
    // 高级搜索显示
    showTopSearch() {
      this.show = !this.show
      this.form.keyword = this.requestName
    },
    // 时间选择
    timeSelect(date, dateStr) {
      this.form.updateTimeFrom = dateStr[0]
      this.form.updateTimeTo = dateStr[1]
    },
    getTongJ() {
      getTongJ().then((res) => {
        if (res.code == 200) {
          this.endVal = res.data.productInfoCount;
        }
      });
    },
    // 供应上限变更
    limitChanged(e) {
      if (e.target.checked) {
        this.limited = 1;
      } else if (!e.target.check) {
        this.limited = null;
      }
    },
    // 升降序
    receptNum(num) {
      this.showConnect = true;
      if (this.form.orderTypes == 1) {
        this.form.orderTypes = num; //正序
        this.topSearch(true);
      } else {
        this.form.orderTypes = 1; //倒序
        this.topSearch(true);
      }
    },
    ordPrice(num) {
      this.showConnect = false;
      if (this.form.orderTypes == 3) {
        this.form.orderTypes = num;
        this.topSearch(true);
      } else {
        this.form.orderTypes = 3;
        console.log(22, this.form.orderTypes);
        this.topSearch(true);
      }
    },
    publishTime(num) {
      this.showConnect = false;
      if (this.form.orderTypes == 5) {
        this.form.orderTypes = num;
        this.topSearch(true);
      } else {
        this.form.orderTypes = 5;
        this.topSearch(true);
      }
    },
    // 跳转详情
    toDetail(id) {
      this.$router.push({
        path: "/ProductContent",
        query: { id },
      });
    },
    // 根据关键词搜索分页列表
    toSearch(show, page) {
      this.displayName = this.requestName;
      let params = {
        auditStatus: "2",
        keyword: this.displayName,
        auditStatus: 2, //审核已通过
        delStatus: 0, //删除状态：正常
        productStatus: 1, //产品状态已上架
        orderTypes: this.form.orderTypes, //1 对接量倒叙 2对接量正序 价格 3 倒叙 价格 4 正序 发布时间 5 倒叙 发布时间 6 正序
        current: page ? page : this.current,
        size: this.PageSize,
        productOneCategory: this.productOneCategory,
        productSecondCategory: this.form.productSecondCategory
      };
      let _ProductsearchKeyWords = localStorage.getItem(
        "ProductsearchKeyWords"
      );
      let ProductsearchKeyWords = [];
      if (_ProductsearchKeyWords) {
        // 获取本地产品 关键字记录
        ProductsearchKeyWords = JSON.parse(_ProductsearchKeyWords);

        if (this.requestName != "") {
          if (ProductsearchKeyWords.includes(this.requestName)) {
          } else {
            if (ProductsearchKeyWords.length >= 5) {
              ProductsearchKeyWords.shift();
              ProductsearchKeyWords.push(this.requestName);
            }else{
              ProductsearchKeyWords.push(this.requestName);
            }
          }
          // if (ProductsearchKeyWords.length >= 5) {
          //   ProductsearchKeyWords.shift();
          // }
          // ProductsearchKeyWords.push(this.requestName);
        }
      }
      localStorage.setItem(
        "ProductsearchKeyWords",
        JSON.stringify(ProductsearchKeyWords)
      );
      getList(params)
        .then((res) => {
          if (res.code == 200) {
            this.goodsList = res.data.records;
            this.total = res.data.total;
          }
        })
        .catch((error) => {
          console.log(error);
        });
    },
    // 清空搜索表单
    clearForm() {
      this.form = {
        productIslimited: false,
        keyword: "",
        productOneCategory: "",
        productSecondCategory: "",
        priceFrom: "",
        priceTo: "",
        current: 1,
        size: 16,
      };
      this.limited = null;
      this.products = "";
      this.selectTypeTwo = [];
      this.productOneCategory = "";
      this.industryList = [
        {
          name: "重点新产品",
          active: false,
          value: 1,
        },
        {
          name: "自主查新产品",
          active: false,
          value: 2,
        },
        {
          name: "专利新产品",
          active: false,
          value: 3,
        },
        {
          name: "其他",
          active: false,
          value: 4,
        },
      ];
    },
    // 产品一级分类下拉列表
    GetByParentList() {
      getProductOneCategory().then((res) => {
        console.log(res);
        if (res.code == 200) {
          this.selectType = res.data.filter(ele => ele.categoryStatus === 1);
        }
      });
    },
    // 一级菜单触发
    handleChange(value) {
      if (value == "") {
        this.productOneCategory = "";
        this.form.productSecondCategory = "";
        this.selectTypeTwo = [];
        return;
      }
      this.selectType.map((item, index) => {
        if (item.id == value) {
          this.productOneCategory = item.categoryNo.trim();
        }
      });

      let _searchProductCategory1List = localStorage.getItem(
        "searchProductCategory1List"
      );
      let searchProductCategory1List = [];
      if (_searchProductCategory1List) {
        // 获取本地产品 关键字记录
        searchProductCategory1List = JSON.parse(_searchProductCategory1List);
        if (searchProductCategory1List.length >= 5) {
          searchProductCategory1List.shift();
        }
        searchProductCategory1List.push(this.productOneCategory);
      } else {
        searchProductCategory1List.push(this.productOneCategory);
      }

      localStorage.setItem(
        "searchProductCategory1List",
        JSON.stringify(searchProductCategory1List)
      );
      let params = { pid: value };
      getProductOneCategory(params).then((res) => {
        if (res.code == 200) {
          console.log(this.form.productSecondCategory);
          this.form.productSecondCategory = "";
          this.selectTypeTwo = res.data.filter(ele => ele.categoryStatus === 1)
        }
      });
    },

    handleChange1(value) {
      let _searchProductCategory2List = localStorage.getItem(
        "searchProductCategory2List"
      );
      let searchProductCategory2List = [];
      if (_searchProductCategory2List) {
        // 获取本地产品 关键字记录
        searchProductCategory2List = JSON.parse(_searchProductCategory2List);
        if (searchProductCategory2List.length >= 5) {
          searchProductCategory2List.shift();
        }
        searchProductCategory2List.push(value);
      } else {
        searchProductCategory2List.push(value);
      }

      localStorage.setItem(
        "searchProductCategory2List",
        JSON.stringify(searchProductCategory2List)
      );
    },
    // 高级搜索
    topSearch(show, page) {
      this.displayName = this.form.keyword;
      let params = {
        auditStatus: 2, //审核已通过
        delStatus: 0, //删除状态：正常
        productStatus: 1, //产品状态已上架
        keyword: this.form.keyword,
        orderTypes: this.form.orderTypes,
        current: page ? page : this.form.current,
        priceTo: this.form.priceTo,
        priceFrom: this.form.priceFrom,
        size: this.form.size,
        productOneCategory: this.productOneCategory,
        productSecondCategory: this.form.productSecondCategory,
        productIslimited: this.limited,
        productTags: this.products,
        updateTimeFrom: this.form.updateTimeFrom,
        updateTimeTo: this.form.updateTimeTo
      };

      let _ProductsearchKeyWords = localStorage.getItem(
        "ProductsearchKeyWords"
      );
      let ProductsearchKeyWords = [];
      if (_ProductsearchKeyWords) {
        // 获取本地产品 关键字记录
        ProductsearchKeyWords = JSON.parse(_ProductsearchKeyWords);
        if (ProductsearchKeyWords.length >= 5) {
          ProductsearchKeyWords.shift();
        }
        ProductsearchKeyWords.push(this.requestName);
      } else {
        ProductsearchKeyWords.push(this.requestName);
      }
      localStorage.setItem(
        "ProductsearchKeyWords",
        JSON.stringify(ProductsearchKeyWords)
      );
      getList(params)
        .then((res) => {
          if (res.code == 200) {
            this.goodsList = res.data.records;
            this.total = res.data.total;
            console.log(this.goodsList)
          }
        })
        .catch((error) => {
          console.log(error);
        });
    },
    // 分页搜索
    onChange(page) {
      this.form.current = page;
      this.topSearch(true);
    },
    // 页容量的改变事件
    showSizeChange(current, size) {
      this.form.size = size;
      this.form.current = current;
      this.topSearch(true);
    },
    // 选择标签
    AddindustryList(index, value) {
      this.industryList[index].active = !this.industryList[index].active;
      this.ActiveindustryList = [];
      this.industryList.forEach((element) => {
        if (element.active) this.ActiveindustryList.push(element);
      });
      let list = [];
      list = this.ActiveindustryList;
      console.log(111, list);
      this.products = list.map((item) => item.value).join(",");
    },
    hideSearch() {
      this.show = false;
    },
  },
  watch:{
    $route(to,from){
      console.log(to);//到哪去
      this.requestName = to.query.keywords
      this.toSearch()
    }
  },
};
</script>

<style lang="less" scoped>
.MaterialDemand {
  .banner {
    width: 100%;
    height: 200px;
    background-position: center top;
    background-image: url(../../../assets/images/productBanner.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    .banner_text {
      padding-top: 40px;
      width: 280px;
      height: 59px;
      font-family: Source Han Sans SC;
      font-size: 36px;
      line-height: 59px;
      color: #ffffff;
    }
    .banner_box {
      width: 300px;
      height: 61px;
      margin-top: 60px;
      background-image: linear-gradient(
        271deg,
        rgba(42, 81, 188, 0) 0%,
        rgba(42, 81, 188, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
      );
      .banner_box_num {
        width: 100px;
        height: 58px;
        padding-left: 61px;
        font-family: Arial;
        font-size: 54px;
        font-weight: normal;
        font-stretch: normal;
        line-height: 58px;
        letter-spacing: 0px;
        color: #ffffff;
      }
    }
  }
  .mainContainer {
    .main_title {
      img {
        width: 40px;
        height: 40px;
        margin-right: 16px;
        vertical-align: middle;
        margin-top: -10px;
      }
      span {
        font-family: Microsoft YaHei;
        font-size: @font26;
        line-height: @font26;
        font-weight: 700;
        color: @text-color-303;
      }
    }
    .main_search {
      margin-top: 24px;
      margin-bottom: 24px;
      .main_search_input {
        margin-left: 3px;
      }
      .main_search_select {
        width: 164px;
        &:nth-child(1) {
          margin-right: 10px;
        }
      }
      .main_search_price {
        width: 160px !important;
      }
      .main_search_label {
        justify-content: flex-end;
        .btn {
          margin-left: 12px;
        }
      }
      .main_search_radio {
        .item_industrymode {
          padding: 0 15px;
          height: 40px;
          background-color: #ffffff;
          border-radius: 20px;
          border: solid 1px #dcdfe6;
          display: inline-block;
          text-align: center;
          line-height: 40px;
          font-size: 16px;
          color: #909399;
          margin-left: 20px;
          cursor: pointer;
        }
        .item_industrymode_active {
          background-color: #2a51bc;
          display: inline-block;
          text-align: center;
          font-size: 16px;
          color: #ffffff;
        }
      }

      .ant-input {
        width: 500px;
        height: 40px;
      }
      .ant_btn1 {
        margin-left: 12px;
        margin-right: 10px;
        width: 100px;
        height: 40px;
        background-color: #2a51bc;
        box-shadow: 0px 10px 20px 0px rgba(7, 41, 71, 0.16);
        border-radius: 4px;
        color: #fff;
      }
      .show_btn {
        color: #333333;
        cursor: pointer;
        &:hover {
          color: #188af1;
        }
      }
      &:nth-child(4) {
        font-family: Microsoft YaHei;
        font-size: @font16;
        font-weight: normal;
        line-height: 21px;
        color: @text-color-606;
      }
    }
    .main_searchResult {
      height: 70px;
      line-height: 70px;
      background-color: #fff;
      box-shadow: 0px 3px 10px 0px rgba(24, 138, 241, 0.16);
      border-radius: 4px;
      margin-bottom: 32px;
      margin: 2vh 0;
      width: 100%;
      .search-left {
        margin-left: 26px;
        font-size: @font16;
        .search-text1 {
          color: #2a51bc;
        }
        .search-text2 {
          font-size: 16px;
          color: #e9284f;
          font-weight: 700;
        }
      }
      .search-right {
        margin-right: 24px;
        .ant-btn {
          margin-left: 16px;
          width: 120px;
          height: 40px;
          line-height: 1;
          border: solid 1px #188af1;
          color: #188af1;
          font-size: @font16;
          &:hover {
            background-color: #188af1;
            color: #fff;
          }
        }
        .down {
          opacity: 0.5;
        }
        .remainingTime {
          padding-left: 5px;
          line-height: 32px;
        }
        .search-right-icon {
          div {
            width: 14px;
            height: 9px;
          }
          padding-top: 3px;
        }
      }
    }
    .goods_list {
      width: 1200px;
      background: #ffffff;
      .goods_list_son {
        width: 1200px;
        margin: 0 auto;
        width: 24%;
        float: left;
        position: relative;
        margin: 0 12px 10px 0;
        &:hover {
          box-shadow: 6px 6px 20px 0px rgba(24, 138, 241, 0.16);
        }
        .goods_list_container {
          margin: 4px;
          padding: 15px;
          border: solid 1px #e4e7ed;
          border-radius: 4px;
          height: 365px;
          &:hover {
            border: 0 none;
            cursor: pointer;
            img {
              transform: scale(1.1);
              -ms-transform: scale(1.1);
            }
            .clearTitle {
              color: #188af1;
            }
            .icon-gengduojiantou {
              color: #188af1;
            }
          }
          .clearTitle {
            margin: 16px 0 10px 0;
            width: 250px;
            height: 28px;
            font-family: Microsoft YaHei;
            font-size: 18px;
            line-height: 30px;
          }
          .price {
            height: 24px;
            font-family: Microsoft YaHei;
            font-size: 18px;
            line-height: 30px;
            color: #ee6224;
            span {
              float: right;
              display: block;
              padding-top: 5px;
              color: #888888;
              font: 15px Microsoft YaHei;
            }
          }
          .produce {
            width: 250px;
            color: #909399;
            margin: 6px 0;
          }
          .produce_type {
            .btn1 {
              height: 24px;
              background-color: #ffffff;
              border: solid 1px #0da9b0;
              border-radius: 10px;
              margin-right: 10px;
              color: #0da9b0;
            }
          }
          .company_box {
            position: relative;
            margin: 6px 0 0 0;
            .faker {
              position: absolute;
              left: 0;
              top: 5px;
              width: 6px;
              height: 18px;
              background-color: #ee6224;
              border-radius: 2px;
            }
            .title {
              width: 195px;
              color: #303133;
              margin: 3px 20px 0 15px;
            }
          }
          .goods_list_box {
            width: 100%;
            height: 174px;
            position: relative;
            text-align: center;
            cursor: pointer;
            .tags {
              position: absolute;
              width: 77px;
              height: 35px;
              line-height: 35px;
              background-color: #ff4e00;
              border-radius: 0px 0px 0px 38px;
              right: -15px;
              top: -16px;
              text-align: right;
              font-size: 16px;
              padding: 0px 10px 0 0;
              color: #ffffff;
              z-index: 6;
            }
            .goods_list_img {
              width: 258px;
              height: 180px;
              background-image: linear-gradient(90deg);
              border-radius: 4px;
              display: flex;
              justify-content: center;
              align-items: center;
              overflow: hidden;
              img {
                width: auto;
                max-height: 180px;
                transition: all 0.8s;
                -ms-transition: all 0.8s;
              }
            }
          }
          .icon-gengduojiantou {
            color: #909399;
            font-size: 18px;
            vertical-align: top;
          }
        }
      }
    }
  }

  .btn {
    width: 100px;
    height: 40px;
  }
}
</style>